package at.horario.dao;

import at.horario.service.LoadDataManager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.testng.annotations.BeforeMethod;
import org.unitils.UnitilsTestNG;
import org.unitils.spring.annotation.SpringBeanByName;

/**
 * Created by IntelliJ IDEA.
 * User: AT
 * Date: Feb 21, 2008
 * Time: 8:49:52 PM
 * To change this template use File | Settings | File Templates.
 */
public class BaseUnitilsTestNG extends UnitilsTestNG {
    protected final Log log = LogFactory.getLog(getClass());

    @SpringBeanByName
    private LoadDataManager loadDataManager;

    @Override
    @BeforeMethod(alwaysRun = true)
    protected void unitilsBeforeTestSetUp() {
        super.unitilsBeforeTestSetUp();
        loadDataManager.addAll();
    }
}
